package com.ruike.alisurface.bean;

import android.text.TextUtils;

import java.util.List;

public class MedicineBean {


    /**
     * data : {"medicine_order":{"order_id":"2021072216015700016909","patient_name":"小二黑","patient_sex":"男","nationality":"汉","card_no":"120105198002320014","age":42,"patient_height":"20","patient_phone":"13854596987","consultation_type":1,"pic_array":["111","2222"],"diagnosis":"没救了 别治了 等死吧","consultation_state":2},"order_details":[{"productImg":"http://120.78.219.34:8018/UploadFile/product/866dcebb-ef2c-4ec8-8dc7-85599a4536a1.jpg","productName":"叔丁基锂","price":0.01,"quantity":3,"manufacturer":"上海阿拉丁生化科技股份有限公司"}]}
     * code : 0
     * msg : success
     * sendData : 2021-07-26 12:00:22
     */

    private DataBean data;
    private int code;
    private String msg;
    private String sendData;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getSendData() {
        return sendData;
    }

    public void setSendData(String sendData) {
        this.sendData = sendData;
    }

    public static class DataBean {
        /**
         * medicine_order : {"order_id":"2021072216015700016909","patient_name":"小二黑","patient_sex":"男","nationality":"汉","card_no":"120105198002320014","age":42,"patient_height":"20","patient_phone":"13854596987","consultation_type":1,"pic_array":["111","2222"],"diagnosis":"没救了 别治了 等死吧","consultation_state":2}
         * order_details : [{"productImg":"http://120.78.219.34:8018/UploadFile/product/866dcebb-ef2c-4ec8-8dc7-85599a4536a1.jpg","productName":"叔丁基锂","price":0.01,"quantity":3,"manufacturer":"上海阿拉丁生化科技股份有限公司"}]
         */

        private MedicineOrderBean medicine_order;
        private List<OrderDetailsBean> order_details;

        public MedicineOrderBean getMedicine_order() {
            return medicine_order;
        }

        public void setMedicine_order(MedicineOrderBean medicine_order) {
            this.medicine_order = medicine_order;
        }

        public List<OrderDetailsBean> getOrder_details() {
            return order_details;
        }

        public void setOrder_details(List<OrderDetailsBean> order_details) {
            this.order_details = order_details;
        }

        public static class MedicineOrderBean {
            /**
             * order_id : 2021072216015700016909
             * patient_name : 小二黑
             * patient_sex : 男
             * nationality : 汉
             * card_no : 120105198002320014
             * age : 42
             * patient_height : 20
             * patient_phone : 13854596987
             * consultation_type : 1
             * pic_array : ["111","2222"]
             * diagnosis : 没救了 别治了 等死吧
             * consultation_state : 2
             */

            private String order_id;
            private String patient_name;
            private String patient_sex;
            private String nationality;
            private String card_no;
            private String age;
            private String patient_height;
            private String patient_phone;
            private int consultation_type;
            private String diagnosis;
            private int consultation_state;
            private List<String> pic_array;

            public String getOrder_id() {
                return order_id;
            }

            public void setOrder_id(String order_id) {
                this.order_id = order_id;
            }

            public String getPatient_name() {

                return patient_name;
            }

            public void setPatient_name(String patient_name) {
                this.patient_name = patient_name;
            }

            public String getPatient_sex() {
                return patient_sex;
            }

            public void setPatient_sex(String patient_sex) {
                this.patient_sex = patient_sex;
            }

            public String getNationality() {
                return nationality;
            }

            public void setNationality(String nationality) {
                this.nationality = nationality;
            }

            public String getCard_no() {
                return card_no;
            }

            public void setCard_no(String card_no) {
                this.card_no = card_no;
            }

            public String getAge() {
                return TextUtils.isEmpty(age) ? "" : age;
            }

            public void setAge(String age) {
                this.age = age;
            }

            public String getPatient_height() {
                return patient_height;
            }

            public void setPatient_height(String patient_height) {
                this.patient_height = patient_height;
            }

            public String getPatient_phone() {


                return patient_phone;
            }

            public void setPatient_phone(String patient_phone) {
                this.patient_phone = patient_phone;
            }

            public int getConsultation_type() {
                return consultation_type;
            }

            public void setConsultation_type(int consultation_type) {
                this.consultation_type = consultation_type;
            }

            public String getDiagnosis() {


                return diagnosis;
            }

            public void setDiagnosis(String diagnosis) {
                this.diagnosis = diagnosis;
            }

            public int getConsultation_state() {
                return consultation_state;
            }

            public void setConsultation_state(int consultation_state) {
                this.consultation_state = consultation_state;
            }

            public List<String> getPic_array() {
                return pic_array;
            }

            public void setPic_array(List<String> pic_array) {
                this.pic_array = pic_array;
            }
        }

        public static class OrderDetailsBean {
            /**
             * productImg : http://120.78.219.34:8018/UploadFile/product/866dcebb-ef2c-4ec8-8dc7-85599a4536a1.jpg
             * productName : 叔丁基锂
             * price : 0.01
             * quantity : 3
             * manufacturer : 上海阿拉丁生化科技股份有限公司
             */
            private String purpose;// "用途用途用途用途用途用途用途",
            private String dose;// "剂量剂量剂量剂量剂量",
            private String take_method; // "服用方式",
            private String remark;//"爆炸了"
            private String product_spec;
            private String productImg;
            private String productName;
            private double price;
            private int quantity;
            private String manufacturer;
            private boolean is_true_name = false;
            private boolean is_remote = false;
            private boolean is_insurance = false;

            public boolean isIs_true_name() {
                return is_true_name;
            }

            public void setIs_true_name(boolean is_true_name) {
                this.is_true_name = is_true_name;
            }

            public boolean isIs_remote() {
                return is_remote;
            }

            public void setIs_remote(boolean is_remote) {
                this.is_remote = is_remote;
            }

            public boolean isIs_insurance() {
                return is_insurance;
            }

            public void setIs_insurance(boolean is_insurance) {
                this.is_insurance = is_insurance;
            }

            public String getProduct_spec() {
                return product_spec;
            }

            public void setProduct_spec(String product_spec) {
                this.product_spec = product_spec;
            }

            public String getPurpose() {
                return purpose;
            }

            public void setPurpose(String purpose) {
                this.purpose = purpose;
            }

            public String getDose() {
                return dose;
            }

            public void setDose(String dose) {
                this.dose = dose;
            }

            public String getTake_method() {
                return take_method;
            }

            public void setTake_method(String take_method) {
                this.take_method = take_method;
            }

            public String getRemark() {
                return remark;
            }

            public void setRemark(String remark) {
                this.remark = remark;
            }


            public String getProductImg() {
                return productImg;
            }

            public void setProductImg(String productImg) {
                this.productImg = productImg;
            }

            public String getProductName() {
                return productName;
            }

            public void setProductName(String productName) {
                this.productName = productName;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public String getManufacturer() {
                return manufacturer;
            }

            public void setManufacturer(String manufacturer) {
                this.manufacturer = manufacturer;
            }


            @Override
            public String toString() {
                return "OrderDetailsBean{" +
                        "purpose='" + purpose + '\'' +
                        ", dose='" + dose + '\'' +
                        ", take_method='" + take_method + '\'' +
                        ", remark='" + remark + '\'' +
                        ", product_spec='" + product_spec + '\'' +
                        ", productImg='" + productImg + '\'' +
                        ", productName='" + productName + '\'' +
                        ", price=" + price +
                        ", quantity=" + quantity +
                        ", manufacturer='" + manufacturer + '\'' +
                        ", is_true_name=" + is_true_name +
                        ", is_remote=" + is_remote +
                        ", is_insurance=" + is_insurance +
                        '}';
            }
        }
    }
}
